TimePunch Summary Service
This service contains methods in order to access the time accounts of the TimePunch profiles.
GetSummaryLocks
This method returns all information about the month-end closings that are found for the employees through the search object.
List<SummaryLockDto> GetSummaryLocks(
out TpFault fault,
TpAuthentication authentication,
UserSearchDto userFilter = null);
| Needed Permission | monthend@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| userFilter | Search object containing the user filter. The coverage will be applied to the filter. | |
| Return value | List that contains all summary locks for the found staff members. |
LoadAllYearlySummaries
This method returns all yearly account data for the authorized employee.
List<YearlySummaryDto> LoadAllYearlySummaries(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| Return value | List containing all yearly sumamries for the given user. |
LoadDailySummaries
Using this method a summary for each working day in the given period can be loaded.
List<DailySummaryDto> LoadDailySummaries(
out TpFault fault,
TpAuthentication authentication,
DateTime startDate,
DateTime endDate);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| startDate | First date to retrieve the daily summary | |
| endDate | Last date to retrieve the daily summary | |
| Return value | List that contains all daily summaries from start through end date |
LoadAllMonthlySummaries
This method can be used to load all monthly summaries of working time for a user.
List<MonthlySummaryDto> LoadAllMonthlySummaries(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication |
LoadMonthlySummary
This method will load the monthly summary of the working time for the specified user at the given reference date.
MonthlySummaryDto LoadMonthlySummary(
out TpFault fault,
TpAuthentication authentication,
DateTime? referenceDate = null);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| referenceDate | Date for that the monthly Summary shall be loaded, or null if the monthly summary for the current date shall be returned. | |
| Return value | The monthly summary for the given reference date. |
LoadMonthlySummaries
This method loads all monthly summaries with the given ID's.
List<MonthlySummaryDto> LoadMonthlySummaries(
out TpFault fault,
TpAuthentication authentication,
List<Guid> summaryIds);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| summaryIds | Ids of the monthly summaries to load. | |
| Return value | The monthly summary for the given reference date. |
LoadTimeAccounts
This method loads the current time accounts of the TimePunch profiles. Depending on whether only the time account of the authorized user or all time accounts may accessed, different permissions will be needed.
List<TimeAccountDto> LoadTimeAccounts(
out TpFault fault,
TpAuthentication authentication,
UserSearchDto userSearch,
DateTime? referenceDate = null);
| Needed Permission | timeAccounts@access / timeAccounts@report | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| userSearch | Information that are used to search the TimePunch profiles | |
| referenceDate | The date of which the time accounts shall be loaded. By default this is always the day before today | |
| Return value | List of Time account information entities |
LoadYearlySummary
This method loads the annual vacations for the authorized user for the given reference date.
YearlySummaryDto LoadYearlySummary(
out TpFault fault,
TpAuthentication authentication,
DateTime? referenceDate = null);
| Needed Permission | summary@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| referenceDate | The date of which the yearly summary shall be loaded, or null if the current date is used. | |
| Return value | The yearly summary for the given user and reference date. |